package com.margo.project.aspectj.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.margo.project.aspectj.service.MargoAcpectService;





@Controller
public class MargoAspectLimitController {
	
	@Autowired
    private MargoAcpectService margoAcpectService;

	/**
	 * http://localhost:8081/getOrder?orderId=000
	 * @return
	 */
    @RequestMapping("/getOrder")
    @ResponseBody
    public String queryOrder1(@RequestParam("orderId") String orderId) {

        return margoAcpectService.queryOrderInfo(orderId);
    }

}
